package com.myspringboot.service.work;

import com.myspringboot.service.Data.TaskTestData;
import com.myspringboot.workerpool.callback.WorkCallBackInterface;
import org.springframework.stereotype.Service;

/**
 * Created by guohuixin on 2017/12/14.
 */
@Service
public class WorkPoolTaskTest implements WorkCallBackInterface {
    @Override
    public void task(Object object) {
        int id = ((TaskTestData)object).getId();
        String name = ((TaskTestData) object).getName();
        System.out.println(id + "_" + name);
    }
}
